﻿<%@ Application Language="C#" %>

<script RunAt="server">

    void Application_Start(object sender, EventArgs e)
    {

        Application.Add("tongtc", 887);
        Application.Add("ol", 25);
        Application["FCKeditor:UserFilesPath"] = "../../../../../Tintuc/";
    }

    void Application_End(object sender, EventArgs e)
    {


    }

    void Application_Error(object sender, EventArgs e)
    {

        //Response.Redirect("/Online/Error");
    }

    void Session_Start(object sender, EventArgs e)
    {

        Application.Lock();
        Application["ol"] = int.Parse(Application["ol"].ToString()) + 1;
        Application["tongtc"] = int.Parse(Application["tongtc"].ToString()) + 1;
        Application.UnLock();
        Session.Timeout = 60;
        Session["GioHang"] = new ShoppingCart();
        
    }

    void Session_End(object sender, EventArgs e)
    {
        Application.Lock();
        Application["ol"] = int.Parse(Application["ol"].ToString()) - 1;
        Application.UnLock();
    }

   
       
</script>

